package com.softstao.guoyu.global;

/**
 * Created by zhanghongbo on 16/1/7.
 */
public class APIInterface {
//    public final static String SERVER = "http://webapp.giocosoholdings.com:8080/giocoso/";
//    public final static String SERVER = "http://webapp.guoyuhome.com:8080/giocoso/";
    public final static String SERVER = "http://112.74.106.239:8080/giocoso/";
    public final static String API_SERVER = SERVER + "api/";
    public final static String SERVER_WAP = SERVER + "front/";

    //User
    public final static String REGISTER = API_SERVER + "agent/regist";
    public final static String REGISTER_CODE = API_SERVER + "agent/registCode";
    public final static String LOGIN = API_SERVER + "agent/login";
    public final static String WEIXIN_LOGIN = API_SERVER + "wechat/auth";
    public final static String WEIXIN_BINDING = API_SERVER + "wechat/binding";
    public final static String USER_INFO = API_SERVER + "agent/findAgentById";
    public final static String UPDATE_USER_INFO = API_SERVER + "agent/updateAgentInfo";
    public final static String IS_COMPLETE = API_SERVER + "agent/isComplete";
    public final static String CHANGE_PSD_CODE = API_SERVER + "agent/changePswCode";
    public final static String CHANGE_PSD = API_SERVER + "agent/changePassword";
    public final static String MESSAGE_COUNT = API_SERVER + "message/getNewMsgCount";

    //balance
    public final static String AGENT_RECHARGE_LIST = API_SERVER + "recharge/findRechargeListByAgentId";
    public final static String GET_BALANCE = API_SERVER + "recharge/getBalance";
    public final static String CHILDREN_RECHARGE_LIST = API_SERVER + "recharge/getChildrenReListByAgentId";
    public final static String CHILDREN_RECHARGE_DETAIL = API_SERVER + "recharge/getChildrenAgentByAgentId";
    public final static String ADD_RECHARGE = API_SERVER + "recharge/add";
    public final static String RECHARGE_APPLY_LIST = API_SERVER + "recharge/findAllRechargeListByAgentId";
    public final static String URGE_RECHARGE = API_SERVER + "recharge/urge";
    public final static String CANCEL_RECHARGE = API_SERVER + "recharge/cancel";
    public final static String ADD_RECHARGE_APPLY = API_SERVER + "recharge/addByAgentId";

    //address
    public final static String ADDRESS_LIST = API_SERVER + "agent/getAddressList";
    public final static String CHANGE_DEFAULT_ADDRESS = API_SERVER + "agent/changeDefaultAddress";
    public final static String DELETE_ADDRESS = API_SERVER + "agent/delAddress";
    public final static String ADD_ADDRESS = API_SERVER + "agent/addAddress";
    public final static String LINK_PROVINCE_CITY = API_SERVER + "agent/linkProvinceAndCity";

    //audit
    public final static String AUDIT_INFO = API_SERVER + "agent/getAuditInfo";
    public final static String AUDIT_CERT = API_SERVER + "agent/getAuditCert";
    public final static String AUDIT_ADD = API_SERVER + "agent/addAuditApply";
    public final static String AUDIT_DETAIL = API_SERVER + "agent/getAuditDetail";

    //retail
    public final static String RETAIL_LIST = API_SERVER + "order/findRetails";
    public final static String RETAIL_DETAIL = API_SERVER + "order/retailDetails";
    public final static String DEL_RETAIL = API_SERVER + "order/delRetail";
    public final static String ADD_RETAIL = API_SERVER + "order/addRetail";

    //rebate
    public final static String ME_TO_OTHER_LIST = API_SERVER + "rebate/getNotLevel5ByMonthsToOther";
    public final static String ME_TO_OTHER_DETAIL = API_SERVER + "rebate/getNotLevel5DetailsToOther";
    public final static String PROVINCE_REBATE = API_SERVER + "rebate/getLevel5ByMonths";
    public final static String OTHER_TO_ME_LIST = API_SERVER + "rebate/getNotLevel5ByMonths";
    public final static String OTHER_TO_ME_DETAIL = API_SERVER + "rebate/getNotLevel5DetailsToMe";
    public final static String SELL_BY_YEARS = API_SERVER + "rebate/getSellByYears";
    public final static String PROVINCE_REBATE_DETAILS = API_SERVER + "rebate/getRebateDetails";
    public final static String MONTHS_REBATE_DETAILS = API_SERVER + "rebate/getMonthsManageDetails";
    public final static String YEARS_REBATE_DETAILS = API_SERVER + "rebate/getYearsIntegralDetails";

    //agent
    public final static String TEAM_COUNT = API_SERVER + "agent/teamCount";
    public final static String PARENT_INFO = API_SERVER + "agent/getParentInfo";
    public final static String DIRECT_SUB = API_SERVER + "agent/getDirectSub";
    public final static String RECOMMEND_TO_ME = API_SERVER + "agent/recommendToMe";
    public final static String RECOMMEND_FROM_ME = API_SERVER + "agent/getRecommendFromMe";
    public final static String NO_ORDER_MONTH = API_SERVER + "agent/noOrderOneMonth";
    public final static String All_SUB = API_SERVER + "agent/getAllSub";
    public final static String SUB_INFO = API_SERVER + "agent/getSubInfo";
    public final static String MONTH_DETAIL = API_SERVER + "order/getMonthDetails";
    public final static String MONTH_ORDER_LIST = API_SERVER + "order/getMonthOrderList";
    public final static String MONTH_ORDER_DETAIL = API_SERVER + "order/details";
    public final static String MONTH_PRO_LIST = API_SERVER + "order/getMonthProList";
    public final static String GET_INVITE_URL = API_SERVER + "agent/getInviteUrl";
    public final static String GET_SUB_APPLY = API_SERVER + "agent/getSubApply";
    public final static String PASS_AUDIT = API_SERVER + "agent/passAudit";
    public final static String REJECT_AUDIT = API_SERVER + "agent/rejectAudit";
    public final static String CANCEL_APPLY = API_SERVER + "agent/cancelApply";

    //order
    public final static String ADD_ORDER = API_SERVER + "order/add";
    public final static String MONTH_SALES_AMOUNT = API_SERVER + "order/getMonthSalesAmount";
    public final static String FROM_AGENT_ORDER = API_SERVER + "order/findByAgent?method=fromAgent";
    public final static String TO_AGENT_ORDER = API_SERVER + "order/findByAgent?method=toAgent";
    public final static String TRANSFER_ORDER = API_SERVER + "order/findByAgent?method=transfer";
    public final static String ORDER_DETAIL = API_SERVER + "order/details";
    public final static String ORDER_CANCEL = API_SERVER + "order/cancel";
    public final static String ORDER_CONFIRM_INCOME = API_SERVER + "order/confirmIncome";
    public final static String ORDER_REJECT_INCOME = API_SERVER + "order/rejectIncome";
    public final static String ORDER_SUBMIT_SHIPPING = API_SERVER + "order/submitExpressInfo";
    public final static String ORDER_PAY = API_SERVER + "order/submitPayInfo";
    public final static String ORDER_CONFIRM = API_SERVER + "order/confirm";
    public final static String ORDER_RESUBMIT = API_SERVER + "order/reSubmit";
    public final static String ORDER_TRANSFER = API_SERVER + "order/confirmAndTransfer";
    public final static String ORDER_RECEIVE = API_SERVER + "order/confirmReceive";
    public final static String ORDER_REVOKE = API_SERVER + "order/revoke";
    public final static String ORDER_DELETE = API_SERVER + "order/deleteSubmit";

    //shop
    public final static String PRODUCT_CATEGORY = API_SERVER + "pro/findTypes";
    public final static String PRODUCT_LIST = API_SERVER + "pro/findPros";
    public final static String ADD_CART = API_SERVER + "pro/addShoppingCart";
    public final static String CART_LIST = API_SERVER + "pro/shoppingCart";
    public final static String UPDATE_CART_LIST = API_SERVER + "pro/updateShoppingCart";

    //update
    public final static String UPDATE_APP = API_SERVER + "version/upgrade";

    //launch_img
    public final static String LAUNCH_IMG = API_SERVER + "category/getCategoryImage";
}
